//
//  GQHFreightsView.h
//  Xanthium
//
//  Created by GuanQinghao on 08/03/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GQHFreightModel.h"


@protocol GQHFreightsViewDelegate <NSObject>

@required
/// 默认必须实现

@optional
/// 可选实现

/// 点击列表项
- (void)qh_selectedRowWithTableView:(UITableView *)tableView atIndexPath:(NSIndexPath *)indexPath;
/// 点击选择起始地
- (void)qh_checkDeparture:(UIButton *)sender;
/// 点击选择目的地
- (void)qh_checkDestination:(UIButton *)sender;
/// 点击选择来源类型
- (void)qh_checkType:(UIButton *)sender;
/// 点击选择更多
- (void)qh_checkMore:(UIButton *)sender;
/// 拨打电话
- (void)qh_dialMobile:(UIButton *)sender;
/// 搜索
- (void)searckKeyWords:(NSString *)keyWord;

@end


@interface GQHFreightsView : UIView

/// 代理
@property (nonatomic, weak) id<GQHFreightsViewDelegate> qh_delegate;

/// 货源列表
@property (nonatomic, strong) UITableView *qh_tableView;

@property (nonatomic, strong) UITextField * textField;

/// 货源模型数组
@property (nonatomic, strong) NSMutableArray<GQHFreightModel *> *qh_freightModelArray;

@end
